import { request } from '../utils/request.js';
// 获取Salary列表
export const getSalaryListAPI = (data:any) => {
  return request.get('/Salary/GetList', {
    params: data,
  });
};

// 添加Salary
export const addSalaryAPI = (data:any) => {
  return request.post('/Salary/AddSalary', data);
};

// 修改Salary
export const editSalaryAPI = (data:any) => {
  return request.post('/Salary/EditSalary', data);
};

// 删除Salary
export const delSalaryAPI = (data:any) => {
  return request.delete(`/Salary/DeleteSalary/${data}`);
};

// 删除多个Salary
export const delSalarysAPI = (data:any) => {
  return request.delete(`/Salary/DeleteSalarys`, { data }); 
}
